import request from '@/utils/request'

export function upCategory(query) {
  return request({
    url: '/scm/category/getList',
    method: 'get',
    params: query
  })
}
export function addCategory(data) {
  return request({
    url: '/scm/category/add',
    method: 'put',
    data
  })
}
export function list(query) {
  return request({
    url: `/scm/category/page`,
    method: 'get',
    params: query
  })
}
export function del(id) {
  return request({
    url: `/scm/category/delete/${id}`,
    method: 'delete'
  })
}
